package edu.washington.tcss360.burningpenguins.util;

/**
 * Defines the properties of a field belonging to a class in the DataObject hierarchy.
 * 
 * @author Chris Gelatt
 * @version 1.0
 * @since 2013-11-2
 *
 */
public class DataObjectField
{
	private String title;
	private String columnTitle;
	private DataObjectFieldDataType dataType;
	private Boolean required;
	
	public DataObjectField(String title, String columnTitle, DataObjectFieldDataType dataType, Boolean required)
	{
		this.title = title;
		this.columnTitle = columnTitle;
		this.dataType = dataType;
		this.required = required;
	}
	
	public String getTitle()
	{
		return title;
	}
	
	public String getColumnTitle()
	{
		return columnTitle;
	}
	
	public String getDataType()
	{
		return dataType.toString();
	}
	
	public DataObjectFieldDataType getRawDataType()
	{
		return dataType;
	}
	
	public Boolean getRequired()
	{
		return required;
	}
}
